<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="en-us">
<title>ini Test</title>
<script language="javascript">
	function init(){
		//alert(MSComm1.CommPort);
		var servip = INI_OCX.ReadIni("tux", "serverip", "c:\\temp\\test.ini");
		alert('servip is : ' + servip);
	}
	
	function pageEnd(){  
		alert('page End...');
	}
</script>
<object id="INI_OCX" classid="clsid:6B722ED9-DC39-11D6-B0EB-00E05C20205E" codebase="./Wxini.ocx"
        type="application/x-oleobject">
</object>
		
<object id="MSComm1" classid="clsid:648A5600-2C6E-101B-82B6-000000000014" codebase="../MSCOMM32.OCX"
        type="application/x-oleobject" style="left: 54px; top: 14px">
        <param name="CommPort" value="3" />
        <param name="DataBits" value="8" />
        <param name="StopBits" value="1" />
        <param name="BaudRate" value="9600" />
        <param name="Settings" value="9600,N,8,1" />
        <param name="RTSEnable" value="1" />
        <param name="DTREnable" value="1" />
        <param name="Handshaking" value="0" />
        <param name="NullDiscard" value="0" />
        <param name="ParityReplace" value="?" />
        <param name="EOFEnable" value="0" />
        <param name="InputMode" value="0" />
        <param name="InBufferSize" value="1024" />
        <param name="InputLen" value="0" />
        <param name="OutBufferSize" value="512" />
        <param name="SThreshold" value="0" />
        <param name="RThreshold" value="1" />
    </object>	
</head>

<body>
<form>
  <fieldset style="width: 200px; height: 250px; text-align: center;">
        <legend>ini内容</legend>
        <div style="float: left;">
            <textarea id="txtIni" name="txtIni" style="width: 200px; height: 160px"></textarea>
            <br />
            <span>
                <input id="isSendHex" name="isSendHex" type="checkbox" checked="0" />16进制</span>
            <input type="button" id="readIni" style="width: 100px; height: 30px" name="SendButton"
                value="读取" onclick="init()">
        </div>
    </fieldset>
</form>
</body>
</html>